import Router from '@ember/routing/route'

export default Router.extend({
    model(){
        return this.store.query('user',{}).then((results)=>{
            return {
                users:results,
                meta:results.get('meta')
            }
        })
    },
    setupController(controller,{users,meta}){
        this._super(controller,users)
        controller.set('meta',meta)
    }
})